Skip to content

network-installer: Do not set timezone or locale in Kickstart#2295

Open
brlane-rht wants to merge 1 commit intoosbuild:mainfrom
brlane-rht:main-empty-kickstart
Open

network-installer: Do not set timezone or locale in Kickstart#2295
brlane-rht wants to merge 1 commit intoosbuild:mainfrom
brlane-rht:main-empty-kickstart

Conversation

@brlane-rht
Copy link
Copy Markdown

@brlane-rht brlane-rht commented Apr 7, 2026

The network installer does not use these values to create a kickstart.
The blueprint Locale is used for the locale of the booted iso, not the
installed system. The timezone customization is not used at all. But
setting these triggers creation of an empty osbuild.ks which causes
Anaconda to crash.

This removes the code that was setting these in the Kickstart struct.
Locale is still set in the installer using org.osbuild.locale

This includes new manifest tests that only set customizations.locale in
the blueprint which will create an org.osbuild.locale stage, but NOT an
org.osbuild.kickstart stage.

Resolves: HMS-10469

@bcl bcl requested a review from supakeen April 7, 2026 19:06
@brlane-rht brlane-rht force-pushed the main-empty-kickstart branch from e35dde1 to 6f9307f Compare April 7, 2026 21:35
@brlane-rht brlane-rht marked this pull request as ready for review April 7, 2026 21:35
@brlane-rht brlane-rht requested a review from a team as a code owner April 7, 2026 21:35
@brlane-rht brlane-rht requested review from bcl and croissanne April 7, 2026 21:35
@brlane-rht brlane-rht force-pushed the main-empty-kickstart branch from 6f9307f to 1cef05d Compare April 7, 2026 21:37
The network installer does not use these values to create a kickstart.
The blueprint Locale is used for the locale of the booted iso, not the
installed system. The timezone customization is not used at all. But
setting these triggers creation of an empty osbuild.ks which causes
Anaconda to crash.

This removes the code that was setting these in the Kickstart struct.
Locale is still set in the installer using org.osbuild.locale

This includes new manifest tests that only set customizations.locale in
the blueprint which will create an org.osbuild.locale stage, but NOT an
org.osbuild.kickstart stage.

Resolves: HMS-10469
@brlane-rht brlane-rht force-pushed the main-empty-kickstart branch from 1cef05d to 773ffe0 Compare April 7, 2026 23:03
Copy link
Copy Markdown
Member

@croissanne croissanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you :)

@croissanne
Copy link
Copy Markdown
Member

Remove both of them, and remove locale from the list of supported blueprint options in the image definitions yaml.

@brlane-rht wait, is this missing from the PR? I can't see any change to the image definition yaml

@brlane-rht
Copy link
Copy Markdown
Author

@brlane-rht wait, is this missing from the PR? I can't see any change to the image definition yaml

ugh. github doesn't update the PR description after the first push, locale is still allowed in the yaml because it can be used to set the iso's language. I'll fix the description to match the current state :)

@supakeen
Copy link
Copy Markdown
Member

supakeen commented Apr 9, 2026

The network installer does not use these values to create a kickstart. The blueprint Locale is used for the locale of the booted iso, not the installed system. The timezone customization is not used at all. But setting these triggers creation of an empty osbuild.ks which causes Anaconda to crash.

This removes the code that was setting these in the Kickstart struct. Locale is still set in the installer using org.osbuild.locale

This includes new manifest tests that only set customizations.locale in the blueprint which will create an org.osbuild.locale stage, but NOT an org.osbuild.kickstart stage.

Resolves: HMS-10469

What I'm confused about is; don't we want to create a kickstart when the timezone or locale is provided in customizations? AFAIK it's OK to have a kickstart for customizations, just not if none are provided.

Shouldn't in that case the fix be the other way around, to actually propagate these values in the kickstart?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants